﻿using System.Linq.Expressions;

namespace SharePoint.Orm {
	class InvalidQueryException : SPOrmException {
		private readonly Expression _expression;

		public InvalidQueryException(string message, Expression expression)
			: base("The query is invalid: " + message + " (expression: " + expression + ")") {
			_expression = expression;
		}

		public Expression Expression {
			get { return _expression; }
		}
	}
}
